home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK1.toast / Development Kits / Installer SDK 1.2 / Upgrader 1.2.1 & Engines / Upgrader 1.2.1 / Plug-in Examples / Simple App Launcher Plug-in / Editor Sources / CSALEditorWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-25  |  788 b   |  40 lines  |  [TEXT/CWIE]

  1. #pragma once
  2.  
  3. #include <UModalDialogs.h>
  4.  
  5. enum
  6. {
  7.     kMainTextInFile         = 0x8000,
  8.     kHelpTextInFile            = 0x4000,
  9.     kKeepApplicationOpen    = 0x2000,
  10.     kShowLaunchCheckbox        = 0x1000,
  11.     kPrecheckLaunchCheckbox    = 0x0800
  12. };
  13.  
  14.  
  15. class    CEditorWindow :     public StDialogHandler
  16. {
  17.  
  18. public:
  19.     enum { class_ID = 'saEd' };
  20.     
  21.     SInt16                        mFileRefNum;
  22.     SInt16                        mPreferenceRsrcID;
  23.     SInt16                        mResListRsrcID;
  24.     UInt16                        mFlags;
  25.     SInt16                        mStringListRsrcID;
  26.     SInt16                        mMainTextRsrcID;
  27.     SInt16                        mHelpTextRsrcID;
  28.     SInt16                        mAppFileRefRsrcID;
  29.     SInt16                        mDocFileRefRsrcID;
  30.  
  31.                                 CEditorWindow( SInt16 inFileRefNum, SInt16 inPreferenceRsrcID, SInt16 inResListRsrcID );
  32.     virtual                        ~CEditorWindow();
  33.     
  34.     SInt32                        DoEdit();
  35.     
  36.     void                        SaveWindowToFile();
  37.     void                        LoadWindowFromFile();
  38.     
  39. };
  40.